import http from "@/utils/http/index";


interface Facility{
    id:string|number,
    type:string|number,
    name:string,
    icon:string
}

let facilityList = (type:number|string)=>{
    return http.get<Facility[]>(`/admin/facility/list?type=${type}`);
}

export {
    type Facility,
    facilityList
}